<%@include file="/WEB-INF/jsp/taglib.jsp" %>
<c:import url="/WEB-INF/jsp/frontend/script.jsp"/>

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>operationPanel</title>
    <script>
        function showUserRecord(idx) {
            $('#userModifyModal').modal("show");
//            document.getElementById("email").value = $("#login_name"+ idx)[0].value;
            document.getElementById("email").value = document.getElementById("user_email"+idx).value;
            document.getElementById("name").value = document.getElementById("user_name"+idx).value;

        }
        function showCommunityRecord(idx){
//            document.getElementById("c_name").value = $("#community_name"+ idx)[0].value;
            document.getElementById("c_name").value = document.getElementById("community_name"+idx).value;
            document.getElementById("c_announcement").value = document.getElementById("announce"+idx).value;
        }

        function showPostRecord(idx){
            document.getElementById("p_title").value = document.getElementById("post_title"+idx).value;
            document.getElementById("p_id_in_form").value = document.getElementById("post_id"+idx).value;
            document.getElementById("p_date").value = document.getElementById("post_date"+idx).value;
            document.getElementById("p_pub_name").value = document.getElementById("post_pub_name"+idx).value;
            document.getElementById("p_text").value = document.getElementById("post_content"+idx).value;

            var essential = document.getElementById("post_is_essential"+idx);
            document.getElementById("p_Essential").checked = essential.value == "true";
        }


//        function showList(type){
//            var showPath;
//            if(type == "user") {
//                showPath = "/WEB-INF/jsp/frontend/maintain/panelList/userList.jsp";
//                return showPath;
//            }
//            if(type == "community") {
//                showPath = "/WEB-INF/jsp/frontend/maintain/panelList/communityList.jsp";
//                return showPath;
//            }
//            if(type == "post") {
//                showPath = "/WEB-INF/jsp/frontend/maintain/panelList/postList.jsp";
//                return showPath;
//            }
//        }


    </script>
</head>
<body>
<%--<header>--%>
    <%--<nav>--%>
        <%--<input value="帖子管理模块" onclick="opMapping('帖子管理模块')" type="button">--%>
        <%--<input value="用户管理模块" onclick="opMapping('用户管理模块')" type="button">--%>
        <%--<input value="版块管理模块" onclick="opMapping('版块管理模块')" type="button">--%>
    <%--</nav>--%>
<%--</header>--%>

<br/><br/>
<div id="typeList">

<% String typePath = (String) request.getAttribute("typePath");%>
    <jsp:include page="<%= typePath%>" flush="true"/>
<%--<jsp:include page="/WEB-INF/jsp/frontend/maintain/panelList/userList.jsp" flush="true"/>--%>

</div>
<br/><br/><br/><br/>

<%--<form action="userModify" name="userModify">--%>
    <%--<input id="userEmail" disabled="disabled" type="text" value="用户邮箱"/>--%>
    <%--<input type="text" id="email" name="email_content"/>--%>
    <%--<br/>--%>
    <%--<input id="userAuth" disabled="disabled" type="text" value="用户权限"/>用户--%>
    <%--<select name="classification" style="width:105px; height: 20px; line-height: 0px; font-size:12px;border: 1px solid #CCCCCC; border-radius: 0px 0px 0px 0px; margin-bottom: 0px;padding: 0px 0px;">--%>
        <%--<option value="0">注册未激活</option>--%>
        <%--<option value="1">注册已激活</option>--%>
        <%--<option value="2">冻结</option>--%>
        <%--<option value="3">管理员</option>--%>
        <%--<option value="-1">删除</option>--%>
    <%--</select>--%>
    <%--<button  type="submit" class="btn btn-success btn-lg btn-block" name="submitButton" onclick="submit()">提交</button>--%>
<%--</form>--%>

</body>
</html>


